using UnityEngine;
using UnityEngine.Rendering;

[ExecuteInEditMode]
[ImageEffectAllowedInSceneView]
[RequireComponent(typeof(Camera))]
public class volumeFog : MonoBehaviour
{
    void OnPreRender()
    {
        // var cmd = context.command;
        // cmd.BeginSample("vfog");
        
        // var sheet = context.propertySheets.Get(Shader.Find("volumeFogVF"));
        // Matrix4x4 projectionMatrix = GL.GetGPUProjectionMatrix(context.camera.projectionMatrix, false);
        // sheet.properties.SetMatrix(Shader.PropertyToID("_InverseProjectionMatrix"), projectionMatrix.inverse);
        // sheet.properties.SetMatrix(Shader.PropertyToID("_InverseViewMatrix"), context.camera.cameraToWorldMatrix);
        // context.command.BlitFullscreenTriangle(context.source, context.destination, sheet, 0);
        // cmd.EndSample("vfog");
    }

}